<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>找目录</title>
    @@include('../components/css.html')
</head>

<body>
@@include('../components/header.html')

<div class="main">
    <div class="content-wrap clearfix">
        <div class="list-con fl">
            <div class="select-wrap">
                <div class="selected-wrap clearfix">
                    <span class="label selected-label fl">已选条件：</span>
                    <ul id='selected-condition' class="selected-condition fl">
                    </ul>
                    <script id="sel-con-template" type="text/x-handlebars-template">
                        {{#each this}}
                            <li>{{this}}<span class="delself">&times;</span></li>
                        {{/each}}
                    </script>
                </div> 
                <div class="classified-wrap clearfix">
                    <div id='chaged-wrap' class="classified-line changed-wrap clearfix"></div>
                    <script id="chaged-wrap-template" type="text/x-handlebars-template">
                        {{#if childTreeList}}
                        <span class="select-label fl" title='{{parentName}}'>{{parentName}}：</span>
                        <ul class="select-item-wrap inner-tree">
                            {{#with childTreeList}}
                                {{#each this}}
                                <li class="select-item" onclick="getCatalogTree('{{code}}','{{name}}')">{{name}}</li>
                                {{/each}}
                            {{/with}}
                        </ul>
                        <span class="show-more dn">更多<i class="iconfont icon-arrow-t"></i></span>
                        {{/if}}
                    </script>

                    <div class="classified-line mode clearfix">
                        <ul class="select-item-wrap fl">
                            <li class="label">提供方式：</li>
                            <li class="select-item select-type" onclick='filterListByType(7)'>数据库</li>
                            <li class="select-item select-type" onclick='filterListByType(8)'>文件</li>
                            <li class="select-item select-type" onclick='filterListByType(6)'>API服务</li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="search-wrap clearfix">
                <p class="search-con fr">
                    <input class="search-txt" type="text" placeholder="在结果中搜索" onkeyup="btnSearch()">
                    <i class="search-ico iconfont icon-sousuo" onclick='filterListBySearch()'></i>
                </p>
            </div>
            <div class="list-wrap">
                <div class="sort-wrap clearfix">
                    <ul class="sort-list-wrap fl">
                        <li class="sort-item active">按发布时间<i class="sort-ico"></i></li>
                        <li class="sort-item">按访问量<i class="sort-ico"></i></li>
                    </ul>
                    <p class="result fr">为您找到<span class="result-count">0</span>条记录</p>
                </div>
                <div id="list-wrap1"></div>
                <script id="list-wrap1-template" type="text/x-handlebars-template">
                    {{#if data}}
                        <ul class="list-item-wrap">
                            {{#each data}}
                                <li class="list-item">
                                    <div class="title-wrap">
                                        <a href="./directory-resources-details.html?id={{id}}&resourcecode={{resourcecode}}" class="title" target="_blank" title='{{name}}'>{{name}}</a>
                                    </div>
                                    <div class="info-wrap clearfix">
                                        <div class="details-wrap fl">
                                            <p class="briefly" title='{{absractinfo}}'>{{handleEmpty absractinfo "--"}}</p>
                                            <ul class="info-resources clearfix">
                                                <li class="provider">
                                                    <span class="info-label">信息资源提供方：</span>
                                                    <span class="info-value" title="{{providedept}}">{{handleEmpty providedept "--"}}</span>
                                                </li>
                                                <li class="catalog">
                                                    <span class="info-label">信息资源目录：</span>
                                                    <span class="info-value" title="{{providedeptchild}}">{{handleEmpty providedeptchild "--"}}</span>
                                                </li>
                                                <li class="type">
                                                    <span class="info-label">共享方式：</span>
                                                    <span class="info-value">{{handleSharedMode shartype}}</span>
                                                </li>
                                                <li class="publish-time">
                                                    <span class="info-label">发布时间：</span>
                                                    <span class="info-value">{{handleEmpty createtime "--"}}</span>
                                                </li>
                                            </ul>
                                        </div>
                                        {{#if ../isLogin}}
                                        <div class="operation-wrap fr">
                                            <button class="btn collection {{isCollection collectionstatus 0}}" onclick='changeCollectionState({{id}},1)'><i class="iconfont icon-L1"></i>收藏</button>
                                            <button class="btn collection cancel-collection {{isCollection collectionstatus 1}}" onclick='changeCollectionState({{id}},0)'>取消收藏</button>

                                            <a class="btn apply {{isApply subscriptionstatus 0}}" href="./directory-apply.html?id={{id}}"><i class="iconfont icon-shenqing"></i>申请</a>
                                            <button class="btn apply cancel-apply {{isApply subscriptionstatus 1}}" onclick='changeApplyState({{id}})'>取消申请</button>
                                        </div>
                                        {{else}}
                                        <div class="operation-wrap unlogin fr">
                                            <button class="btn collection"><i class="iconfont icon-L1"></i>收藏</button>

                                            <a class="btn apply" href="javascript:void(0);"><i class="iconfont icon-shenqing"></i>申请</a>
                                        </div>
                                        {{/if}}
                                    </div>
                                    <ul class="statistics-wrap clearfix">
                                        <li class="statistics-visit">
                                            <i class="iconfont icon-chakan"></i>
                                            <p class="label-wrap">
                                                <span class="statistics-label">访问量：</span>
                                                <span class="statistics-value visit">{{handleEmpty accesscount 0}}</span>
                                            </p>
                                        </li>
                                        <li class="statistics-use">
                                            <i class="iconfont icon-jigoushuju"></i>
                                            <p class="label-wrap">
                                                <span class="statistics-label">使用量：</span>
                                                <span class="statistics-value visit">0</span>
                                            </p>
                                        </li>
                                        <li class="statistics-data">
                                            <i class="iconfont icon-shujuliang"></i>
                                            <p class="label-wrap">
                                                <span class="statistics-label">数据量：</span>
                                                <span class="statistics-value visit">0</span>
                                            </p>
                                        </li>
                                    </ul>
                                </li>
                            {{/each}}
                        </ul>
                    {{else}}
                        <p class="no-server">
                            <span class="no-server-txt">暂无数据</span>
                        </p>
                    {{/if}}
                </script>
            </div>
            <div class="page-wrap clearfix">
                <div class="pagination fr clearfix"></div>
                <span class="total-count fr">共0页，每页0条</span>
            </div>
        </div>
        <div class="right-wrap fr">
            @@include('../components/right-bar.html')
        </div>
    </div>
</div>
@@include('../components/footer.html')
</body>
@@include('../components/js.html')
<script src="../../js/common/jquery.pagination.js"></script>
<script src="../../js/directory/index.js"  charset="UTF-8"></script>
</html>